//logs.js
const app = getApp()
var module=require("../../../utils/shanghai/chuxingxiangqing.js");
Page({
  data: {
  	language:'',
    company:null,
    imageUrl:'',
    way:null,
  },
  onLoad: function(value) {
    var lang=app.globalData.lang;
    var that=this;
    this.setData({
      language:lang,
      imageUrl:app.globalData.imageUrl,
    });
    wx.request({
      url:app.globalData.url+'route/detail',
      method:'POST',
      data:{
        id:value.id,
        language:lang,
      },
      success:function(e){
        that.setData({
          company:e.data.data
        });
      }
    });
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    var that = this;
    return {
      title: app.globalData.shareTitle,
      path: app.globalData.sharePath,
      imageUrl: '../../../images/share_img.png',
      success: function (res) {
        // 转发成功
      },
      fail: function (res) {
        // 转发失败
      }
    }
  },
})